package com.ikun.service;

import java.util.List;
import java.util.Map;

import com.ikun.entity.MaintenanceOrders;
import com.ikun.entity.req.MaintenanceOrderDTO;
import com.ikun.util.Result;

public interface MaintenanceOrdersService {
    List<MaintenanceOrders> findAssignedOrders();

    List<MaintenanceOrders> findCompleted();

    String addMaintenanceOrders(MaintenanceOrders req);

    Result markOrderAsCompleted(Map<String, Object> params);

    Result getPendingOrders(Integer staffId);

    List<MaintenanceOrderDTO> findAllWorkOrdersByMangerId(Integer mangerId);

    int assignStaff(String orderId, Integer staffId);

    List<MaintenanceOrderDTO> findAllWorkOrders();
}
